<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>用户数据管理</title>
    <%- include("../include/header.ejs") %>
    <style>
        .ui-jqgrid
        {
            font-size:0.8rem
        }
    </style>
</head>
<body style="width: 100%;overflow-x: hidden">
<div>
    <select id="sid" name="sid">
        <%for(var id in ret.server){%>
        <option value="<%=id%>"><%=ret.server[id]%></option>
        <%}%>
    </select>
    <table id="jqGrid"></table>
    <div id="jqGridPager"></div>
    <span class="oi oi-person"  ></span>
</div>
<%- include('../bpath') %>
<script>
    var branch = '<%=branch%>';
    var handle = '<%=ret.handle%>';
    var grid_selector = '#jqGrid';
    var pager_selector ='#jqGridPager';
    var sid = "<%=ret.sid%>"
    var api = "<%=ret.api%>"
    $("#sid").val(sid);
    $("#sid").on("change",function(){
        var id = $("#sid").val();
        if(id != sid){
            cosjs.reload("?api="+api+"&sid="+id);
        }
    });
</script>
<%- include('../proxy/'+ret.api) %>
</body>
</html>